package com.yuelao.yuelao_backend.dto.request;

import lombok.Data;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

import java.math.BigDecimal;

@Data
public class CalculateRewardsRequest {
    @NotNull(message = "挖矿池ID不能为空")
    private Long poolId;

    @NotNull(message = "质押金额不能为空")
    @Min(value = 0, message = "质押金额必须大于0")
    private BigDecimal amount;

    @NotNull(message = "质押时长不能为空")
    @Min(value = 1, message = "质押时长必须大于0")
    private Integer duration; // 天
}